package com.asj.house.controller;

import com.asj.house.client.HouseMenuClient;
import com.asj.house.returns.RespEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 菜单管理 前端控制器
 * </p>
 *
 * @author asj
 * @since 2021-02-06
 */
@RestController
@RequestMapping("/house-menu")
@Slf4j
@Api(value = "菜单相关接口", tags = "菜单相关接口")
public class HouseMenuController {

    @Resource
    private HouseMenuClient houseMenuClient;

    @GetMapping
    @ApiOperation(value = "菜单列表")
    public RespEntity queryAllMenus() {
        return houseMenuClient.queryAllMenu();
    }

}
